package com.megvii.koala.tv.event;

import de.greenrobot.event.EventBus;

/**
 * Created by linyue on 16/1/24.
 */
public class TVEventAPI
{
    /**
     * 菜单点击一键注册
     */
    public static void sendClickMenuRegister()
    {
        EventBus.getDefault().post(new ClickMenuRegisterEvent());
    }

    /**
     * 菜单点击手动刷新
     */
    public static void sendClickMenuRefresh()
    {
        EventBus.getDefault().post(new ClickMenuRefreshEvent());
    }

    /**
     * 选择主题
     *
     * @param theme
     */
    public static void sendChooseTheme(String theme)
    {
        EventBus.getDefault().post(new ChooseThemeEvent(theme));
    }

    /**
     * 焦点是否在菜单的“一键注册”上
     * @param focusedOnRegister
     */
    public static void sendMenuFocusEvent(boolean focusedOnRegister)
    {
        EventBus.getDefault().post(new MenuFocusEvent(focusedOnRegister));
    }
}
